﻿
namespace NetworkTools {
    public static class StringArrayExtensions {
        public static int? IndexOf(this string[] array, string val) {
            for (int i = 0; i < array.Length; i++) {
                if (array[i] == val) {
                    return i;
                }
            }
            return null;
        }

    }
}
